<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@page isELIgnored="false" %>
<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8"/>
		<c:set var="title" value="认证中心" scope="request" />
		<jsp:include page="/head.jsp" />
	</head> 

	<body>
		<c:import url="/header.do?full=1" />
		<div class="col-md-2">
			<c:import url="/left-menu.do" />
		</div>
		<div class="col-md-10 news-add">
			<ol class="breadcrumb">
				<li>
					<a href="user.html">认证中心</a>
				</li>
				<li class="active">认证中心</li>
			</ol>

			<!-- <form class="form-inline form-search" action="certificate/certificateInfoinfoId.do" > -->
		
				<div class="form-group">
					<select class="form-control a1" name="newsClassId">
						<option value="certificate/certificateInfoListAll.do">全部类别</option>
						<option value="certificate/selectInfoStatus.do">成绩通过并已认证</option>
						<option value="certificate/selectInfoPass.do">成绩通过未认证</option>
						<option value="certificate/selectInfoStatus3.do?infoStatus=0">已认证</option>
						<option value="certificate/selectInfoStatus2.do">未认证</option>
						<!-- <option value="">成绩未通过已认证</option>
						<option value="">成绩未通过未认证</option> -->
					</select>
				</div>
				<!-- <div class="form-group">
					<input name="key" class="form-control" type="text" placeholder="证书编号">
				</div> -->
				<a herf="" class="aa"><button class="btn btn-primary a2">
				<i class="fa fa-search"></i>
			</button></a>
			<!-- </form> -->
			<table class="table table-striped table-hover">
				<thead>
					<tr style="font-weight:bold">
						<th style="text-align: center; width: 3em;" class="text-center"><input type="checkbox" id="	" /></th>
						
						<th style="text-align: center; width: 40em;" class="text-center">姓名</th>
						<th style="text-align: center; width: 30em;" class="text-center">身份证号</th>
						<th style="text-align: center; width: 180em;" class="text-center">考试评语</th>
						<th style="text-align: center; width: 40em;" class="text-center">报考用户名</th>
						<th style="text-align: center; width: 60em;" class="text-center">认证师用户名</th>
						<th style="text-align: center; width: 20em;" class="text-center">成绩</th>
						<th style="text-align: center; width: 70em;" class="text-center">是否通过</th>
						<th style="text-align: center; width: 30em;" class="text-center">认证状态</th>
						<th style="text-align: center; width: 30em;" class="text-center">报考金额</th>
						<th style="text-align: center; width: 40em;" class="text-center">操作</th>
					</tr>
				</thead>
				<tbody id="tbd">
					<c:forEach items="${list.list}" var="certificate">
					
					<tr>
						<td style="text-align: center; width: 3em;" ><input type="checkbox" id="	" /></td> 
						<!--<td style="text-align: center; width: 15em;" >${certificate.infoId}</td>-->
						<%-- <td style="text-align: center; width: 15em;" >${certificate.infoId}</td>
						<td style="text-align: center; width: 15em;" >${certificate.infoCertificateTypeId}</td> --%>
						<td style="text-align: center; width: 8em;" >${certificate.infoName}</td>
						<td style="text-align: center; width: 10em;" >${certificate.infoCard}</td>
						<%-- <td style="text-align: center; width: 10em;" ><fmt:formatDate value="${certificate.infoBirth}" pattern="yyyy-MM-dd"/></td> --%>
						<td style="text-align: center; width: 180em;" >${certificate.infoRemark}</td>
						<td style="text-align: center; width: 10em;" >${certificate.infoExamUsername}</td>
						<td style="text-align: center; width: 40em;" >${certificate.infoRzsUsername}</td>
						<td style="text-align: center; width: 8em;" >${certificate.infoGrade}</td>
						<td style="text-align: center; width: 70em;" >${certificate.infoPass}</td>
						<td style="text-align: center; width: 50em;" >${certificate.infoStatus=='0'?'已认证':'未认证'}</td>
						<td style="text-align: center; width: 10em;" >${certificate.infoMoney}</td>
						<td style="text-align: center; width: 40em;" class="text-center"><a href="/certificate/update.do?infoId=${certificate.infoId}" class="btn btn-primary btn-xs">认证</a>
				 	<a href="/certificate/delete.do?infoId=${certificate.infoId}" class="btn btn-primary btn-xs">删除</a>
					</td> 
					</tr>
					</c:forEach>
				</tbody>
			</table>

			<!-- 分页 -->
			<div class="bs-example"
							data-example-id="disabled-active-pagination" style="position: relative;margin-left: 400px">
							<nav aria-label="...">
							<ul class="pagination dis">
								<li class="${list.hasPreviousPage==false?'disabled':''}"><a
									href="certificate/certificateInfoListAll1.do?pg=${list.pageNum-1 }&shopId=${d}" aria-label="Previous"><span
										aria-hidden="true">«</span></a></li>
								<c:forEach begin="1" end="${list.pages }" var="p1">
									<li class="${p1==list.pageNum?'active':'' }"><a
										href="certificate/certificateInfoListAll1.do?pg=${p1}&shopId=${d}">${p1} <span class="sr-only"></span></a></li>
								</c:forEach>
								<li class="${list.hasNextPage==false?'disabled':''}"><a
									href="certificate/certificateInfoListAll1.do?pg=${list.pageNum+1 }&shopId=${d}" aria-label="Next"><span
										aria-hidden="true">»</span></a></li>
							</ul> 
							</nav>
						</div>

		</div>
		<jsp:include page="/footer.jsp" />

		<script src="../../food/js/jquery-1.11.3.min.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
	
			$(".aa").on("click",function(){
				/* alert("asd") */
				
				let  href=$(".a1").val()
				/* alert(href) */
				$(".aa").attr("href",href)
				
				//alert("sad")
			}) 
		</script>

	</body>

</html>